package com.study.map.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.study.common.jackson.StringOrArrayDeserializer;
import lombok.Data;

/**
 * IP定位响应DTO
 *
 * @author study
 * @date 2025-08-31
 */
@Data
public class IpLocationResponse {

    /**
     * 返回状态码
     * 1：成功；0：失败
     */
    private String status;

    /**
     * 返回的状态信息
     */
    private String info;

    /**
     * 状态码
     * 10000：请求正常；其他：请求异常
     */
    private String infocode;


    /**
     * 所在省份
     */
    @JsonDeserialize(using = StringOrArrayDeserializer.class)
    private String province;


    /**
     * 所在城市
     */
    @JsonDeserialize(using = StringOrArrayDeserializer.class)
    private String city;

    /**
     * 所在区县
     */
    @JsonDeserialize(using = StringOrArrayDeserializer.class)
    private String adcode;

    /**
     * 所在区域编码
     */
    @JsonDeserialize(using = StringOrArrayDeserializer.class)
    private String rectangle;
}